import { defineStore } from 'pinia';

const useUserStore = defineStore('user', {
  state: () => ({
    token: null,
    userInfo: null,
  }),
  persist: {
    enabled: true,
    strategies: [
      { key: 'user', storage: localStorage },
    ],
  },
});

export default useUserStore;